# import os
import time

#
# print(os.sep)
# print(os.name)
# print(os.getcwd())
#
# # 拼接同级目录下的aa.py文件
# cur_path = os.getcwd()
# print(cur_path)
# file = cur_path + os.sep + 'aa.py'
# print(file)
# print(os.path.basename('F:\gitee\python\推送文件.txt'))
# print(os.path.dirname('F:\gitee\python\推送文件.txt'))
# print(os.path.join('F:\gitee\python\cenv', '推送文件.txt'))
# print(os.path.isdir('F:\gitee\python'))


print(time.time())
localtime = time.localtime()
print(localtime)

print(time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()))
print(time.strftime("%a %b %d %H:%M:%S %Y", time.localtime()))
a = "Thu May 22 21:44:36 2025"
print(time.mktime(time.strptime(a, "%a %b %d %H:%M:%S %Y")))

print(time.strftime('%Y/%m/%d', time.localtime(time.time())))  # 年月日
print(time.strftime('%Y%m%d%H%M%S', time.localtime(time.time())))  # 年月日时分秒 常用作保存日志的文件名
